<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc  更新
@author WeiXiaoJin
@since 2019-11-22 18:53:18
-->

	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">

								<form class="form-horizontal" id="modifyForm">

									<input type="hidden" name="id" th:value="${bean.id}" />
									
<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">脚本内容 </label>
	<div class="col-md-9">
				<input class="form-control" id="scriptContent" type="text" th:value="${ bean.scriptContent}" name="scriptContent" placeholder="脚本内容">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">脚本类型(scala|ansible) </label>
	<div class="col-md-9">
				<input class="form-control" id="scriptType" type="text" th:value="${ bean.scriptType}" name="scriptType" placeholder="脚本类型(scala|ansible)">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">任务名称 </label>
	<div class="col-md-9">
				<input class="form-control" id="taskName" type="text" th:value="${ bean.taskName}" name="taskName" placeholder="任务名称">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">运行时间 </label>
	<div class="col-md-9">
				<input class="form-control" id="taskRunTime" type="text" th:value="${ bean.taskRunTime}" name="taskRunTime" placeholder="运行时间">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">最后成功时间 </label>
	<div class="col-md-9">
				<div class="input-group date">
			<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
			<input type="text" class="form-control time-input" 
			       id="laydate-demo-3" name="lastSuccessTime" 
				   th:value="${ #dates.format(bean.lastSuccessTime, 'yyyy-MM-dd HH:mm:ss')}" 
			       data-type="datetime" 
			       data-format="yyyy-MM-dd HH:mm:ss" 
			       placeholder="yyyy-MM-dd HH:mm:ss" lay-key="3">
		</div>
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">最后失败时间 </label>
	<div class="col-md-9">
				<div class="input-group date">
			<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
			<input type="text" class="form-control time-input" 
			       id="laydate-demo-3" name="lastFailTime" 
				   th:value="${ #dates.format(bean.lastFailTime, 'yyyy-MM-dd HH:mm:ss')}" 
			       data-type="datetime" 
			       data-format="yyyy-MM-dd HH:mm:ss" 
			       placeholder="yyyy-MM-dd HH:mm:ss" lay-key="3">
		</div>
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">runStatus </label>
	<div class="col-md-9">
				<input class="form-control" id="runStatus" type="text" th:value="${ bean.runStatus}" name="runStatus" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">任务版本号 </label>
	<div class="col-md-9">
				<input class="form-control" id="taskVersion" type="text" th:value="${ bean.taskVersion}" name="taskVersion" placeholder="任务版本号">
			</div>
</div>
																				</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		function submitHandler() {
            var modifyUrl = ctx+"portal/auto/autoTaskHistory/update" ;
			$.operate.save(modifyUrl , $('#modifyForm').serialize());
	    }
	</script>
</body>
</html>
